package fangzhiyi_day0321.homework.goods;

/**
 * @author fangzhiyi
 * @version 1.0
 * @date 2025/3/21 19:49
 * @description
 */
public class Produtor {
    private String name;
    private double price;
    private int number;
    private String origin;

    public Produtor() {
    }

    public Produtor(String name, double price, int number, String origin) {
        this.name = name;
        this.price = price;
        this.number = number;
        this.origin = origin;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    @Override
    public String toString() {
        return "Produtor{" +
                "name='" + name + '\'' +
                ", price=" + price +
                ", number=" + number +
                ", origin='" + origin + '\'' +
                '}';
    }
}
